package com.shuwen.gcdj.mapper.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuwen.gcdj.bean.dictionary.request.DictionaryListParam;
import com.shuwen.gcdj.bean.dictionary.request.DictionaryMainParam;
import com.shuwen.gcdj.bean.dictionary.response.DictionaryMainVO;
import com.shuwen.gcdj.entity.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @oauth Jxintao
 * @createDate 2021/11/17
 * @info
 */
@Mapper
public interface DictionaryMapper extends BaseMapper<Dictionary> {
    IPage<DictionaryMainVO> getPageList(Page<Dictionary> page, @Param("param") DictionaryMainParam param);

    List<DictionaryMainVO> getList(@Param("param") DictionaryListParam param);
}
